package com.cynthia.system.service.impl;

import com.cynthia.system.model.SysUserRole;
import com.cynthia.system.mapper.SysUserRoleMapper;
import com.cynthia.system.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户角色表 服务实现类
 * </p>
 *
 * @author cynthia
 * @since 2021-12-15
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;

    @Override
    public boolean deleteSysUserRoleByUserId(int userId) {
        return sysUserRoleMapper.deleteSysUserRoleByUserId(userId);
    }
}
